defaultvalue test: Exempt GtkText::buffer
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Feb 2019 20:50:59 +0000 (15:50 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 19 Feb 2019 05:25:59 +0000 (00:25 -0500)
It gets created on-demand, so isn't NULL.

testsuite/gtk/defaultvalue.c

index 9ef83c1aaf05a5db93965cd6d17d745148da036a..603947d60c8db4fd1978bc92e27a417292b78005 100644 (file)
@@ -228,12 +228,19 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
 G_GNUC_END_IGNORE_DEPRECATIONS
 
-      /* Default invisible char is determined at runtime */
+      /* Default invisible char is determined at runtime,
+       * and buffer gets created on-demand
+       */
       if (g_type_is_a (type, GTK_TYPE_ENTRY) &&
          (strcmp (pspec->name, "invisible-char") == 0 ||
            strcmp (pspec->name, "buffer") == 0))
        continue;
 
+      if (g_type_is_a (type, GTK_TYPE_TEXT) &&
+         (strcmp (pspec->name, "invisible-char") == 0 ||
+           strcmp (pspec->name, "buffer") == 0))
+       continue;
+
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 
       if (g_type_is_a (type, GTK_TYPE_ENTRY_COMPLETION) &&